package cn.net.yato.picture.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName ImgType
 * @Description 图片类型
 * @Author yato
 * @Date 2020/2/17 13:20
 * @Version 1.0
 */
@Data
@TableName(value = "imgtype")
public class ImgType implements Serializable {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private long id;
    /**
     * 图片类型id 唯一
     */
    @TableField(value = "typeId")
    private String typeId;
    /**
     * 图片类型名称 唯一
     */
    @TableField(value = "typeName")
    private String typeName;
    /**
     * 图片类型创建人id
     */
    @TableField(value = "typeCreateUserId")
    private String typeCreateUserId;
    /**
     * 图片类型修改人id
     */
    @TableField(value = "typeUpdateUserId")
    private String typeUpdateUserId;
    /**
     * 图片类型创建日期
     */
    @TableField(value = "typeCreateDate")
    private Date typeCreateDate;
    /**
     * 图片类型修改日期
     */
    @TableField(value = "typeUpdateDate")
    private Date typeUpdateDate;
    /**
     * 图片集合
     */
    @TableField(exist = false)
    private List<Image> images = new ArrayList<>();

    public ImgType() {
    }

    public ImgType(long id, String typeId, String typeName, String typeCreateUserId, String typeUpdateUserId, Date typeCreateDate, Date typeUpdateDate, List<Image> images) {
        this.id = id;
        this.typeId = typeId;
        this.typeName = typeName;
        this.typeCreateUserId = typeCreateUserId;
        this.typeUpdateUserId = typeUpdateUserId;
        this.typeCreateDate = typeCreateDate;
        this.typeUpdateDate = typeUpdateDate;
        this.images = images;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeCreateUserId() {
        return typeCreateUserId;
    }

    public void setTypeCreateUserId(String typeCreateUserId) {
        this.typeCreateUserId = typeCreateUserId;
    }

    public String getTypeUpdateUserId() {
        return typeUpdateUserId;
    }

    public void setTypeUpdateUserId(String typeUpdateUserId) {
        this.typeUpdateUserId = typeUpdateUserId;
    }

    public Date getTypeCreateDate() {
        return typeCreateDate;
    }

    public void setTypeCreateDate(Date typeCreateDate) {
        this.typeCreateDate = typeCreateDate;
    }

    public Date getTypeUpdateDate() {
        return typeUpdateDate;
    }

    public void setTypeUpdateDate(Date typeUpdateDate) {
        this.typeUpdateDate = typeUpdateDate;
    }

    public List<Image> getImages() {
        return images;
    }

    public void setImages(List<Image> images) {
        this.images = images;
    }
}
